package com.lin.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * <p>
 *
 * </p>
 *
 * @author 林伟鸿
 * @since 2022-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(autoResultMap = true)
public class ProjectOutside implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "project_id", type = IdType.AUTO)
    private Integer projectId;

    @JsonIgnore
    private Integer masterId;

    @TableField(exist = false)
    private String masterName;
    @NotBlank(message = "项目名称不能为空")
    private String projectName;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @NotEmpty(message = "项目标签不能为空")
    private List<String> projectTag;
    @NotBlank(message = "项目秒不不能为空")
    private String description;
    @NotBlank(message = "文件不能为空")
    private String file;

    @TableField(fill = FieldFill.INSERT)
//    @JsonIgnore
    private Long createTime;


}
